<template>
  <div>
    <keep-alive exclude="Article,SearchResult">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
// 组件被缓存后,created和destroyed不会再次执行了
// 取而代之:activatedhedeActivated(激活/失去激活)
// 测试接口
import { allChannelListAPI } from '@/api'
export default {
  async created () {
    try {
      const res = await allChannelListAPI()
      console.log(res)
    } catch (err) {
      console.log(err)
    }
  }
}
</script>

<style>
</style>
